export default [
  {
    path: '/',
    name: 'tabbar',
    //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
    component: () => import('@/views/Tabbar.vue'),
    children: [
      {
        path: 'home',
        name: 'home',
        component: () => import('@/views/Home.vue')
      },
      {
        path: 'task',
        home: 'task',
        component: () => import('@/views/Task.vue')
      },
      {
        path: 'personal',
        name: 'personal',
        component: () => import('@/views/Personal.vue')
      }
    ],
    redirect: to => {
      return { name: 'home' }
    }
  },
  {
    path:'/modifyPwd',
    name:'modifyPwd',
    component:() => import('@/views/EditPsw.vue')
  },
  {
    path: '/taskDetail/:lsStatus/:workOrderId',
    name: 'taskDetail',
    component: () => import('@/views/task/Detail.vue'),
    props: true
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/publishTask/:lsStatus',
    name: 'publishTask',
    component: () => import('@/views/master/publishTask.vue'),
    props:true
  },
  {
    path: '/notice/:lsStatus',
    name: 'notice',
    component: () => import('@/views/master/notice.vue'),
    props: true

  },
  {
    path:'/result/:rsStatus',
    name:'result',
    component:()=>import('@/views/Result.vue'),
    props:true
  },
  {
    path:'/upload/:lsId',
    name:'upload',
    component:()=>import('@/views/worker/Upload.vue'),
    props:true
  },
  {
    path: '*',
    name: 'notFound',
    component: () => import('@/views/NotFound.vue')
  }
]
